#ifndef COMMON_FILELOCK_H
#define COMMON_FILELOCK_H 1

#include <sys/types.h>
#include <common/io.h>

API_LIBLOCAL int filelock_writelock(iohandle_t, off_t, off_t);
API_LIBLOCAL int filelock_readlock(iohandle_t, off_t, off_t);
API_LIBLOCAL int filelock_unlock(iohandle_t, off_t, off_t);
API_LIBLOCAL int filelock_checklock(iohandle_t, off_t, off_t);

#endif
